import { $t } from "@/plugins/i18n";

const Layout = () => import("@/layout/index.vue");

export default {
  path: "/order",
  name: "Order",
  component: Layout,
  redirect: "/order/list",
  meta: {
    icon: "ep:shopping-cart",
    title: "订单管理",
    rank: 9
  },
  children: [
    {
      path: "/order/list",
      name: "OrderList",
      component: () => import("@/views/order/list/index.vue"),
      meta: {
        icon: "ep:list",
        title: "订单列表",
        showParent: true
      }
    },
    {
      path: "/order/detail/:id",
      name: "OrderDetail",
      component: () => import("@/views/order/detail/index.vue"),
      meta: {
        title: "订单详情",
        showLink: false,
        activePath: "/order/list"
      }
    },
    {
      path: "/order/refund",
      name: "OrderRefund",
      component: () => import("@/views/order/refund/index.vue"),
      meta: {
        icon: "ep:money",
        title: "退款管理",
        showParent: true
      }
    },
    {
      path: "/order/statistics",
      name: "OrderStatistics",
      component: () => import("@/views/order/statistics/index.vue"),
      meta: {
        icon: "ep:data-analysis",
        title: "订单统计",
        showParent: true
      }
    }
  ]
} satisfies RouteConfigsTable;
